package jsyf.oa.entity.crm;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by WHH-PC on 2017/12/26.
 */
@Entity
@Table(name = "T_CRM_EXIHIBITION_INTENTION", schema = "oa", catalog = "")
public class ExhibitionIntentionEntity extends BaseEntity{

    private String id;

    private String exhibitionInfoId;

    private String eqipmentModelId;

    private String eqipmentModelName;

    private Double quote;

    private Double acceptPrice;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getExhibitionInfoId() {
        return exhibitionInfoId;
    }

    public void setExhibitionInfoId(String exhibitionInfoId) {
        this.exhibitionInfoId = exhibitionInfoId;
    }

    public String getEqipmentModelId() {
        return eqipmentModelId;
    }

    public void setEqipmentModelId(String eqipmentModelId) {
        this.eqipmentModelId = eqipmentModelId;
    }

    public String getEqipmentModelName() {
        return eqipmentModelName;
    }

    public void setEqipmentModelName(String eqipmentModelName) {
        this.eqipmentModelName = eqipmentModelName;
    }

    public Double getQuote() {
        return quote;
    }

    public void setQuote(Double quote) {
        this.quote = quote;
    }

    public Double getAcceptPrice() {
        return acceptPrice;
    }

    public void setAcceptPrice(Double acceptPrice) {
        this.acceptPrice = acceptPrice;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("EXHIBITION_INFO_ID", getExhibitionInfoId());
        obj.put("EQIPMENT_MODEL_ID", getEqipmentModelId());
        obj.put("QUOTE", getQuote());
        obj.put("ACCEPT_PRICE", getAcceptPrice());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_CRM_EXHIBITION_INTENTION";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("EXHIBITION_INFO_ID", "exhibitionInfoId");
        obj.put("EQIPMENT_MODEL_ID", "eqipmentModelId");
        obj.put("QUOTE", "quote");
        obj.put("ACCEPT_PRICE", "acceptPrice");
        return obj;
    }
}
